/**
 * 
 */
package com.zc.spring.serviceimpl;

import java.util.ArrayList;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zc.spring.javabean.User;

/**
 * @author ZhangCheng
 * @time 2019年10月31日
 */
@Service
public class ListServiceImpl {
	ArrayList<User> us = new ArrayList<User>();
	public void showList() {
		for(int i = 0; i < 5; i++) {
			User u = new User();
			u.setName("qw"+i);
			u.setAge(i);
			u.setEmail("qwe"+i+"@qq.com");
			u.setPhoneNum("133"+i);
			us.add(u);
		}
		for(User u:us) {
			System.out.println(u.toString());
		}
	}
}
